@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

/* Custom slider styles */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
  background: transparent;
  height: 8px;
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: #4F8EF7;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px;
  transition: all 0.2s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #238BE6;
}

input[type="range"]::-moz-range-track {
  background: transparent;
  height: 8px;
  border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
  background: #4F8EF7;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease-in-out;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: #238BE6;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  input[type="range"]::-webkit-slider-thumb {
    background: #4F8EF7;
  }
  
  input[type="range"]::-moz-range-thumb {
    background: #4F8EF7;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  /* Larger touch targets */
  .touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Remove hover effects on mobile */
  @media (hover: none) and (pointer: coarse) {
    .hover\:scale-105:hover {
      transform: none;
    }
    
    .hover\:border-primary\/30:hover {
      border-color: inherit;
    }
  }
  
  /* Active states for better feedback */
  button:active {
    transform: scale(0.98);
  }
  
  /* Larger slider thumb for mobile */
  input[type="range"]::-webkit-slider-thumb {
    height: 28px;
    width: 28px;
  }
  
  input[type="range"]::-moz-range-thumb {
    height: 28px;
    width: 28px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Prevent layout shift on modal open */
body.modal-open {
  padding-right: 0 !important;
}